package com.jiumi.baseconfig.domain;

import com.jiumi.common.annotation.Excel;
import com.jiumi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文章信息对象 base_article_info
 *
 * @author jiumi
 * @date 2023-05-21
 */
public class BaseArticleInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 文章类型（使用字典） */
    @Excel(name = "文章类型", readConverterExp = "使=用字典")
    private String type;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 副标题 */
    @Excel(name = "副标题")
    private String subTitle;

    /** 封面图 */
    @Excel(name = "封面图")
    private String coverImage;

    /** 摘要 */
    @Excel(name = "摘要")
    private String summary;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 是否首页展示 */
    @Excel(name = "是否首页展示")
    private String isIndex;

    /** 首页大图 */
    @Excel(name = "首页大图")
    private String bannerImage;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setSubTitle(String subTitle)
    {
        this.subTitle = subTitle;
    }

    public String getSubTitle()
    {
        return subTitle;
    }
    public void setCoverImage(String coverImage)
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage()
    {
        return coverImage;
    }
    public void setSummary(String summary)
    {
        this.summary = summary;
    }

    public String getSummary()
    {
        return summary;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setIsIndex(String isIndex)
    {
        this.isIndex = isIndex;
    }

    public String getIsIndex()
    {
        return isIndex;
    }
    public void setBannerImage(String bannerImage)
    {
        this.bannerImage = bannerImage;
    }

    public String getBannerImage()
    {
        return bannerImage;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("title", getTitle())
            .append("subTitle", getSubTitle())
            .append("coverImage", getCoverImage())
            .append("summary", getSummary())
            .append("content", getContent())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isIndex", getIsIndex())
            .append("bannerImage", getBannerImage())
            .append("sort", getSort())
            .toString();
    }
}
